package com.yoofn.framework.adapter

import android.support.v7.util.DiffUtil
import com.yoofn.framework.item.BaseItem

/**
 * Created by kalshen on 17-9-8.
 */
abstract class DiffCallBack(val oldItems: List<BaseItem<*>>, val newItems: List<BaseItem<*>>) : DiffUtil.Callback() {


    override fun getOldListSize(): Int = oldItems.size

    override fun getNewListSize(): Int = newItems.size

}